package packethandler;

import game.JockPotAll;
import io.ClientSession;
import io.OperationResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import player.Player;
import protocol.OpCode;

public class JockPotAllHandler extends PhotonHandlerBase{
	protected static final Logger log = LoggerFactory.getLogger(JockPotAllHandler.class);
	protected int[] opcodes = { 
			OpCode.Activity,
	};

	JockPotAll jpa=new JockPotAll();
	public JockPotAllHandler() {
		HandlerDispatchManager.register(HandlerDispatch.PLAYER, opcodes, this);
	}
	@Override
	protected void OnOperationResponse(Object obj,
			ClientSession session) {
		OperationResponse operationResponse =  (OperationResponse)obj;
		switch (operationResponse.OperationCode) {
		case OpCode.Activity:
			jpa.Activity(operationResponse, (Player)session.getClient());
			
			break;
			
		

		
		}

	}


}
